<template>
  <div class="satrs">
    <myheader title="我的收藏">
      <span
        slot="left"
        class="iconfont iconjiantou2"
        @click="$router.back()"
      ></span>
    </myheader>
    <articleblock v-for="(v, i) in starList" :key="i" :post="v"></articleblock>
  </div>
</template>

<script>
import myheader from "@/components/myheader.vue";
import articleblock from "@/components/articleblock.vue";
import { user_starList } from "@/apis/user.js";
export default {
  components: {
    myheader,
    articleblock,
  },
  data() {
    return {
      starList: [],
    };
  },
  async mounted() {
    let res = await user_starList();
    console.log(res);
    this.starList = res.data.data;
  },
};
</script>

<style>
</style>